/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package modelo;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.BeanFactoryAware;
import org.springframework.beans.factory.BeanNameAware;
import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
/**
 *
 * @author odeen
 */
/**
 *
 * @todo DisposableBean no se dispara el evento, revisar.
 */
public class PalindromoImpl implements Palindromo{
    private String cadena;

    public String getCadena() {
        return cadena;
    }

    public void setCadena(String cadena) {
        this.cadena = cadena;
    }

    public String ejecutar() {
        StringBuffer sb = new StringBuffer();
        for(int i = cadena.length()-1 ; i>=0 ; i--){
           sb.append(cadena.charAt(i));
        }
        System.out.println("Ejecutando en servidor");
        return sb.toString();
        
    }
}
